using System;
using System.Collections.Generic;
using System.Text;

namespace Coriander.Xmpp.Xmpp
{
    /// <summary>
    /// Xmpp connection settings.
    /// </summary>
    public class ConnectionSettings
    {
        TimeSpan receiveWait;
        TimeSpan sendWait;

        /// <summary>
        /// Gets or sets the time to wait after a blokcing read has completed.
        /// </summary>
        public TimeSpan ReceiveWait
        {
            get { return receiveWait; }
            set { receiveWait = value; }
        }   

        /// <summary>
        /// Gets or sets the time to wait after a blokcing send has completed.
        /// </summary>
        public TimeSpan SendWait
        {
            get { return sendWait; }
            set { sendWait = value; }
        }

        /// <summary>
        /// ctor : TimeSpan, TimeSpan
        /// </summary>
        /// <param name="sendWait"></param>
        /// <param name="receiveWait"></param>
        public ConnectionSettings(TimeSpan sendWait, TimeSpan receiveWait) 
        {
            this.sendWait       = sendWait;
            this.receiveWait    = receiveWait;  
        }
    }
}
